import type { IPage } from '@/types'
import request from '@/utils/https'

export function getListByPage(data: IPage) {
  return request<any[]>({
    url: '/interactPageList',
    method: 'post',
    data
  })
}

export function doLike(data: any) {
  return request<any[]>({
    url: '/doLike',
    method: 'post',
    data
  })
}

export function comment(data: any) {
  return request<any[]>({
    url: '/saveInteractComment',
    method: 'post',
    data
  })
}
